home *** CD-ROM | disk | FTP | other *** search
/ Collection of Internet / Collection of Internet.iso / infosrvr / dev / www_talk.930 / 001479_daemon _Tue Jun 29 11:55:25 1993.msg < prev    next >
Internet Message Format  |  1994-01-24  |  2KB

  1. Received: by  nxoc01.cern.ch  (NeXT-1.0 (From Sendmail 5.52)/NeXT-2.0)
  2.     id AA06344; Tue, 29 Jun 93 11:55:27 MET DST
  3. Return-Path: <M.T.Hamilton@lut.ac.uk>
  4. Received: from dxmint.cern.ch by  nxoc01.cern.ch  (NeXT-1.0 (From Sendmail 5.52)/NeXT-2.0)
  5.     id AA06340; Tue, 29 Jun 93 11:55:25 MET DST
  6. Received: from avarice.lut.ac.uk by dxmint.cern.ch (5.65/DEC-Ultrix/4.3)
  7.     id AA09762; Tue, 29 Jun 1993 12:18:44 +0200
  8. Received: from genie.lut.ac.uk by avarice.lut.ac.uk 
  9.           id <19883-0@avarice.lut.ac.uk>; Tue, 29 Jun 1993 11:23:07 +0100
  10. Date: Tue, 29 Jun 1993 11:22:11 +0100 (BST)
  11. From: Martin Hamilton <M.T.Hamilton@lut.ac.uk>
  12. Subject: MIME mailcap entry for HTML, using TkWWW
  13. To: www-talk@nxoc01.cern.ch
  14. Message-Id: <Pine.3.07.9306291110.F19312-a100000@avarice>
  15. Mime-Version: 1.0
  16. Content-Type: TEXT/PLAIN; charset=US-ASCII
  17. Sender: M.T.Hamilton@lut.ac.uk
  18.  
  19. I don't recall having seen anything like this, so here goes...
  20.  
  21.   text/x-html; xmosaic %s
  22.   text/x-html; xmosaic %s; compose=htmlcompose %s;\
  23.      description="HTML Hypertext generated by tkWWW 0.8"
  24.  
  25. Where htmlcompose is... 
  26.  
  27.   #!/bin/sh
  28.  
  29.   WWW_HOME=$1.html export WWW_HOME
  30.  
  31.   cat >$WWW_HOME <<!!EOF!!
  32.   <title>HTML generated for `whoami`@`hostname`.`domainname` by TkWWW</title>
  33.   <h1>Type your message in here!</h1>
  34.   !!EOF!!
  35.  
  36.   tkWWW -wwwnoinfo
  37.   mv $1.html $1
  38.  
  39. The only drawback with using tkWWW this way is that you have
  40. to go through the "generate source" & "save source" dialogs
  41. to get your HTML exported.
  42.  
  43. Suggestion:
  44.  
  45. One way to get around this would be to have a command line option 
  46. (say -wwwsource) that told it just to act as an HTML editor, reading
  47. in $1 and dumping the exported HTML automatically on exiting.
  48.  
  49. Martin
  50.  
  51. PS An "insert file" option would be quite nice too!
  52.  
  53.  
  54.